package com.ljs.tranctionldemo.dao;

import com.ljs.tranctionldemo.bean.Users;
import com.ljs.tranctionldemo.request.MoneyToinRequest;
import com.ljs.tranctionldemo.response.MoneyResponse;
import com.ljs.tranctionldemo.util.BasePageResult;
import com.ljs.tranctionldemo.util.Result;

import java.io.Serializable;
import java.util.List;

/**
 * @Description:
 * @Author: liujinsheng
 * @Date: 2021/6/28.
 */
public interface UserDao {
    public Boolean add(Users users);
    public Boolean delete(String id);
    public  Boolean update(Users users);
    public List<Users> findAll(int page,int size);
    public Users findById(String id);

    /**
     * 转出
     * @param id
     * @param money
     * @return
     */
    public boolean transTo(MoneyToinRequest moneyToinRequest);

    /**
     * 转入
     * @param id
     * @param money
     * @return
     */
    public boolean transIn(MoneyToinRequest moneyToinRequest);
}
